package com.itheima.接口.接口和类的关系_04.接口与接口的关系_03;

import com.itheima.接口.接口入门_01.Person;

public class 多继承 {

}
interface SchoolRule extends CountryRule, ProvinceRule{
    void cd();
}
class Student extends Object implements SchoolRule,FamilyRule{

    @Override
    public void cd() {
        System.out.println("不能迟到");
    }

    @Override
    public void qj() {
        System.out.println("不能违法犯罪");
    }

    @Override
    public void xd() {
        System.out.println("不能吸毒");
    }

    @Override
    public void sh() {
        System.out.println("不能说谎");
    }
}
